ObjectDB Database Search
51-100 of 200 resultsActivated DB does not work from one to another day activation code or a new one? support Support I don't think the MAC changed. However, the activation code is different now and it works. Very strange. itsme Martin Petzold Examining this issue ... Activated DB does not work from one to another day. How can this be? com.objectdb.o.UserException | |
Attempt to begin a new transaction when a transaction is active The code I have a RecordDao stateless java bean : @Stateless public class RecordDao ... ._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause | |
How to check that ObjectDb licenses are activated?.com/forum/1384 I tried to check the activation status using following code EntityManagerFactory emf ... . createEntityManager (). createQuery ( "objectdb activation " , boolean . class ). getSingleResult ... other versions? Activation often fails because the activation key is set in a different | |
Online Backup of the original database file. For example, backing up a test.odb database file using the code ... .getSingleResult(); The code above, for instance, could create a backup at c:\backup ... side. For example, in client-server mode the code above could create the backup file on the server | |
Activation & Object Model Enhancement though we are unable (and don't want) to activate each oem instance so we'd need a solution ... osgi bundles using maven. One of our bundles contains the code calling odb JEnhancer. Maybe it'd | |
JPA Exceptions subclasses of PersistenceException . For example, an attempt to update the database with no active | |
JPA Persistable Types the original classes and enable transparent activation and transparent persistence. For example, a collection | |
What are the main benefits of using ObjectDB?. The ability to store ordinary objects in the database directly can simplify the code significantly. Less (and more simple) code to write, debug and test, as well as a much easier learning curve leads | |
JPA Query API with an EntityManager (represented by em in the following code snippets), which serves as a factory ... . createQuery ("SELECT c FROM Country c", Country.class); In the above code , the same JPQL query | |
ObjectDB - JPA Object Database for Java - start writing more effective database code using Java classes and objects! Try an ObjectDB / JPA | |
JPA Entity Fields the @Transient annotation). Storing an entity object in the database does not store methods or code | |
Is ObjectDB better than Object Relational Mapping (ORM)? databases when necessary - with exactly the same code . | |
Eclipse Distribution License - v 1.0 Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice | |
CRUD Database Operations with JPA Given an EntityManager , em , that represents a JPA connection to the object database, we can use it to store, retrieve, update and delete database objects. Storing New Entity Objects The following code fragment stores 1,000 Point objects in the database: em. getTransaction (). begin | |
Defining a JPA Entity Class Entity Classes Storing an entity object in the database does not store methods and code | |
Schema Update The configuration element supports renaming packages, classes and fields in ObjectDB databases as a complementary operation to renaming or moving these elements in the IDE during source code refactoring. Only these schema changes are specified in the configuration file. As explained in chapter 2 | |
Logical Operators in JPQL and Criteria API, cb. isTrue (isInUN), cb. isTrue (isInEU)); In the above code non Predicate boolean expressions | |
Paths and Types in JPQL and Criteria API. get ("capital"); Path captialName = capital. get ("name"); The path expressions in the above code | |
Literals in JPQL and Criteria Queries of the entity class (e.g. Country). That is equivalent to Country.class in Java code . Notice | |
Setting and Tuning of JPA Queries, JDOQL and ObjectDB extensions. Setting "JPQL" is useful to enforce portable JPA code by ObjectDB | |
Is ObjectDB better than competing object databases?, supporting community, forums, IDEs support, tools, books, tutorials and sample code . ObjectDB | |
Step 3: Add a Context Listener Class code : package guest; import javax.persistence.*; import javax.servlet.*; @WebListener public class ... ().getAttribute("emf"); emf.close(); } } The code above: Invokes the Enhancer to enhance the entity class | |
Step 3: Add a Context Listener Class of the new source file with the following code : package guest; import javax.persistence.*; import javax ... = (EntityManagerFactory)e.getServletContext().getAttribute("emf"); emf.close(); } } The code above: Invokes | |
Step 3: Add a Main Class to create the class. Copy and paste the following code to the newly created class file: package | |
Step 2: Define a JPA Entity Class the new class. Copy and paste the following code into the newly created Point class: package tutorial | |
Step 3: Add a Main Class In this step we will add code to the Main class (that was generated with the project) in order to store Point objects in the database and then retrieve them from the database. Use copy and paste to replace the content of the Main class with the following content: package tutorial; import javax | |
Getting Started with JPA and Eclipse well (dialog boxes and menus might look slightly different but the code would be the same). This tutorial consists of the following steps: | |
Getting Started with JPA and NetBeans well (dialog boxes and menus might look slightly different but the code would be the same). This tutorial consists of the following steps: | |
Step 2: Define a JPA Entity Class code : package guest; import java.io.Serializable; import java.sql.Date; import javax.persistence.Entity | |
Step 2: Define a JPA Entity Class and paste to replace the new source file content with the following code : package guest; import java.io | |
NetBeans/JPA Web Application Tutorial but the code would be the same). The Tutorial Steps This tutorial consists of the following steps: | |
Eclipse/JPA Web Application Tutorial but the code would be the same). The Tutorial Steps This tutorial consists of the following steps: | |
Step 4: Add a Servlet Class of the new source file with the following code : package guest; import java.io.IOException; import javax | |
NetBeans/JPA Java EE Tutorial well (dialog boxes and menus might look slightly different but the code would be the same). Note | |
Step 2: Entity Class and Persistence Unit to replace the new source file content with the following code : package guest; import java.io | |
Step 3: Define an EJB Session Bean) class. Now replace the content of the new source file with the following code : package guest; import | |
Step 3: Define an EJB Session Bean with the following code : package guest; import java.util.List; import javax.ejb.Stateless; import javax.persistence | |
Step 2: Entity Class and Persistence Unit and paste to replace the new source file content with the following code : package guest; import java.io | |
Step 4: Add a Servlet Class the new servlet class. Now replace the content of the new source file with the following code : package | |
Eclipse/JPA Java EE Tutorial with other Eclipse versions as well (dialog boxes and menus might look slightly different but the code | |
Step 4: Add a Controller Class replace the content of the new source file with the following code : package guest; import javax.servlet | |
NetBeans/JPA Spring MVC Web Tutorial and menus might look slightly different but the code would be the same). The tutorial is based on using | |
Step 2: Entity Class and Persistence Unit to replace the new source file content with the following code : package guest; import java.io | |
Step 3: Define a Spring DAO Component replace the content of the new source file with the following code : package guest; import java.util.List | |
Step 4: Add a Controller Class the new Spring Controller class. Now replace the content of the new source file with the following code | |
Step 3: Define a Spring DAO Component replace the content of the new source file with the following code : package guest; import java.util | |
Getting Started with JPA This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple Point entity objects, where each Point has two persistent fields - x and y . If you already know JPA - the source code will be straightforward | |
Eclipse/JPA Spring MVC Web Tutorial might look slightly different but the code would be the same). The tutorial is based on using a Maven | |
Step 2: Entity Class and Persistence Unit and paste to replace the new source file content with the following code : package guest; import | |
Which API should I use - JPA or JDO?, tutorials and sample code . When to prefer JDO JDO might be preferred when portability to other object |